/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.SpecialistTypeDao;
import cc.altius.model.SpecialistType;
import cc.altius.service.SpecialistTypeService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author sagar
 */
@Service
public class SpecialistTypeServiceImpl implements SpecialistTypeService {
    
    @Autowired
    private SpecialistTypeDao specialistTypeDao;

    @Override
    public int addSpecialistType(SpecialistType specialistType) {
        return this.specialistTypeDao.addSpecialistType(specialistType);
    }

    @Override
    public int updateSpecialistType(SpecialistType specialistType, int specialistTypeId) {
        return this.specialistTypeDao.updateSpecialistType(specialistType, specialistTypeId);
    }

    @Override
    public List<SpecialistType> getSpecialistTypeList() {
        return this.specialistTypeDao.getSpecialistTypeList();
    }

    @Override
    public SpecialistType getSpecialistTypeById(int specialistTypeId) {
        return this.specialistTypeDao.getSpecialistTypeById(specialistTypeId);
    }
    
}
